package main

import (
	"fmt"
	"github.com/gofiber/fiber"
	"gowork/bidding/controller"
	"gowork/bidding/utils"
	_ "gowork/bidding/timedTasks"
)

func main()  {

	w := new(utils.Worker)
	for i:=1; i<=15; i++ {
		fmt.Println(w.GetId())
	}

	app := fiber.New()

	bc := new(controller.BiddingController)
	app.Post("/matching", bc.Matching)
	app.Post("/distribution", bc.Distribution)
	app.Post("/actions", bc.Actions)
	app.Post("/operations", bc.Operations)
	app.Post("/sampleEvaluation", bc.SampleEvaluation)
	app.Post("/scmActions", bc.ScmActions)

	app.Listen(7653)
}
